package com.gzhryc.net_marketing.cloud.account;

import com.gzhryc.common.event.IDelayEvent;
import org.apache.http.HttpResponse;

/**
 * HTTP回调的延迟时间
 * 
 * @author zhanghao 2020-6-26 创建
 *
 */
public abstract class HttpCallbackDelayEvent implements IDelayEvent {
	
	private static final long serialVersionUID = 1L;

	/**
	 * 获取回调路径
	 * @return
	 */
	public abstract String getUrl();
	
	/**
	 * 获取回调的字符串内容
	 * @return
	 */
	public abstract String getStringEntity();
	
	/**
	 * 发送回调成功
	 */
	public abstract void sendSuccess(HttpResponse result);
	
	/**
	 * 发送回调失败
	 */
	public abstract void sendFail();
	
	/**
	 * 获取数据库Key
	 * @return
	 */
	public abstract String getJdbcKey();
	
}
